import request from "@/api";

// 分页查询用户列表
export function listPage(params) {
  return request({
    url: "/user/listPage",
    method: "get",
    params: params,
  });
}

// 保存用户
export function save(data) {
    return request({
      url: "/user/save",
      method: "post",
      data: data,
    });
  }

// 根据id获取用户详情
export function getById(id) {
  return request({
    url: "/user/getById",
    method: "get",
    params: {
        id:id
    },
  });
}

// 删除用户
export function deleteById(id) {
  return request({
    url: "/user/deleteById",
    method: "delete",
    params: {
        id:id
    },
  });
}